class Solution:
    def minimumSteps(self, s: str) -> int:
        i = 0
        ans = 0
        for j, v in enumerate(s):
            if v == "0":
                ans += j - i
                i += 1
        return ans


print((1 + 8) * (22))
print((1 + 4 + 8) * 18)
print(16 * 15)
